package com.nt.train.service.impl;
import com.nt.train.dto.OrderInfo;
import com.nt.train.dto.PayResult;
import com.nt.train.service.IPaymentService;
import org.springframework.stereotype.Service;
/**
 * 微信支付，需要实现支付的接口
 * @author hlf
 * @version 1.0
 * @date 2022/8/5 8:46
 */
@Service("WechatPay")
public class WechatPayServiceImpl implements IPaymentService {

    /**
     * 微信支付
     * @param order
     * @return
     */
    @Override
    public PayResult pay(OrderInfo order) {
        //实现业务逻辑
        return new PayResult("微信支付成功");
    }
}
